import threading
import time


param = ''

list = []

def write_date(param1):
    print(f'{threading.current_thread()},写入了数据')
    for i in range(10):
     list.append(str(f'{param1}{i}'))


def read_date():
    print(f'{threading.current_thread()},读取了数据')
    print(list)


if __name__ == '__main__':
    # write_date('aa')
    # read_date()
    writ = threading.Thread(target=write_date,args=('dd',))
    read = threading.Thread(target=read_date)
    writ.start()
    read.start()